package main

import "fmt"

func main()  {
	a:=make([]int,2,3)
	fmt.Println(a)
	c:= append(a, 12,12,3,4,3)
	c[0]=3333
	var s4 []int = make([]int, 0, 0)
	fmt.Println(s4)
	fmt.Println(c)
	fmt.Println(a)


	a6 := []int{-10, 1, 2, 3, 4, 5}
	a4 := []int{-1, -2, -3, -4}
	fmt.Println("a6:", a6)
	fmt.Println("a4:", a4)
	copy(a6,a4) // 将a4 copy到a6
	fmt.Println("copy...")
	a4[0]=1111
	fmt.Println("a6:", a6)
	fmt.Println("a4:", a4)
	fmt.Println()


}